package com.jade.framework.security;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * 说明一个方法需要何种权限。
 *
 * @author <a href="mailto:lyyang@jsailing.cn">lyyang</a>
 * @version 1.0 13-5-19 下午3:05
 */
@Retention (RetentionPolicy.RUNTIME)
@Target ({ElementType.METHOD})
public @interface CheckPermission
{
    public static int MODE_AND = 0;
    public static int MODE_OR = 1;

    String[] permission() default {};

    int mode() default 0;
}
